package com.painpointcloud.common.util.core;

import java.util.Date;

import static com.painpointcloud.common.util.JackLeonArithUtil.getStartPageIndex;

/**
 * Created by JackLeon on 2017/8/23 16:41
 * description:
 **/
public class BaseBean {
	private Integer currentPage = 1;//当前页
	private Integer pageSize=2;//每页显示记录数
	private Long startIndex = 0L;
	private Long endIndex=10L;
	private String start_time;
	private String end_time;


	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Long getStartIndex() {
		return (long)getStartPageIndex(currentPage,pageSize);
	}

	public void setStartIndex(Long startIndex) {
		this.startIndex = startIndex;
	}

	public Long getEndIndex() {
		return (long)pageSize;
	}

	public void setEndIndex(Long endIndex) {
		this.endIndex = endIndex;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
}
